package com.sunshine.lnuplus.view.Splash;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProviders;

import com.sunshine.lnuplus.R;
import com.sunshine.lnuplus.view.Main.MainActivity;
import com.sunshine.lnuplus.view.Welcome.WelcomeActivity;

public class SplashActivity extends AppCompatActivity {

    //SplashViewModel viewModel;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);
//        viewModel = ViewModelProviders.of(this).get(SplashViewModel.class);
//        viewModel.setActivity(this);
//        viewModel.toGetWeather();
//        if(viewModel.getFirstStart()) {
//            startActivity(new Intent(this, WelcomeActivity.class));
//            finish();
//        }
        startActivity(new Intent(this, MainActivity.class));
        finish();
    }
}
